newChat{ id="first",
	text = "#WHITE#Hello " .. game.player.name .. "! Don't ask why I know your name, I just do. #LIGHT_GREEN#*He suddenly screams in agony*",
	answers = {
		{"So who are you, or more specifically, what are you? I have never seen your kind before.", jump="what"},
		{"Oh no, you are in pain! I am a level " .. game.player.level .. " " .. game.player.faction .. " elemental, I can help!!!", jump="pain"},
		{"So how do you know my name?", jump="name"},
	}
}

newChat{ id="what",
	text = [[#LIGHT_GREEN#*He slowly regains his composure*#WHITE# I am a mana elemental. Long ago Akraad, my ruler, asked me to stay outside to warn people of the perils of this area, while he sealed this portal to the temple so that chaos could not break through.  Sadly I fear that chaos is again breaking through, and that you must speak to Akraad yourself of this.  Perhaps he can contain them again!  I fear it is too late for me to tell him myself.  But quickly, know this, the orbs shall lead the wa... #LIGHT_GREEN#*Suddenly his body is wreathed in wild magics and his body morphs and changes*  Hahaha... fools, chaos shall destroy all in the end!]],
	answers = {
		{"...", action=function(npc, player)
			npc:die() 
			local chaos = game.zone:makeEntityByName(game.level, "actor", "CHAOS_SPAWN")
			game.zone:addEntity(game.level, chaos, "actor", 25, 25)
			if player.faction == "mana" then player:grantQuest("orb-collection")
			else player:grantQuest("orb-option") end
		end},
	}
}

newChat{ id="pain",
	text = "#LIGHT_GREEN#*He slowly regains his composure*#WHITE# Sorry, but you are only level " .. game.player.level .. " and you need to be at least level " .. game.player.level + 1 .. " to cure me. But now, why I am here. Long ago Akraad, my ruler, asked me to stay outside to warn people of the perils of this area, while he sealed this portal to the temple so that chaos could not break through.  Sadly I fear that chaos is again breaking through, and that you must speak to Akraad yourself of this.  Perhaps he can contain them again!  I fear it is too late for me to tell him myself.  But quickly, know this, the orbs shall lead the wa... #LIGHT_GREEN#*Suddenly his body is wreathed in wild magics and his body morphs and changes*  Hahaha... fools, chaos shall destroy all in the end!", 
	answers = {
		{"...", action=function(npc, player)
			npc:die() 
			local chaos = game.zone:makeEntityByName(game.level, "actor", "CHAOS_SPAWN")
			game.zone:addEntity(game.level, chaos, "actor", 25, 25)
			if player.faction == "mana" then player:grantQuest("orb-collection")
			else player:grantQuest("orb-option") end
		end},
	}
}

newChat{ id="name",
	text = [[#LIGHT_GREEN#*He slowly regains his composure*#WHITE# I told you not to ask!!! But now, why I am here. Long ago Akraad, my ruler, asked me to stay outside to warn people of the perils of this area, while he sealed this portal to the temple so that chaos could not break through.  Sadly I fear that chaos is again breaking through, and that you must speak to Akraad yourself of this.  Perhaps he can contain them again!  I fear it is too late for me to tell him myself.  Know this, the orbs shall lead the wa... #LIGHT_GREEN#*Suddenly his body is wreathed in wild magics and his body morphs and changes*  Hahaha... fools, chaos shall destroy all in the end!]],
	answers = {
		{"...", action=function(npc, player)
			npc:die() 
			local chaos = game.zone:makeEntityByName(game.level, "actor", "CHAOS_SPAWN")
			game.zone:addEntity(game.level, chaos, "actor", 25, 25)
			if player.faction == "mana" then player:grantQuest("orb-collection")
			else player:grantQuest("orb-option") end
		end},
	}
}

return "first"